package com.design.movieticket.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.design.movieticket.entity.Permission;

import java.util.List;

public interface PermissionService {
    /** 权限信息分页查询 */
    public LambdaQueryWrapper buildQuery(Permission permission);

    /** 分页相关 */
    public <E extends IPage<Permission>> E page(E page, Wrapper<Permission> queryWrapper);

    /** 新增或更新权限数据 */
    public void addOrUpdatePermissionInfo(Permission permission);

    /** 获取权限信息详情 */
    public Permission getPermissionDetail(long id);

    /** 删除权限信息 */
    public void delPermissionById(long id);
}
